<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="stylesheets/font-awesome.min.css">
	<link rel="stylesheet" href="stylesheets/reset.css">
	<link rel="stylesheet" href="stylesheets/bootstrap.css">
	<link rel="stylesheet" href="stylesheets/main.css">
	<link rel="stylesheet" href="stylesheets/post.css">
</head>
<body>
	<%- include header -%>
	<div class="common-content clearfix">
		<div class="container">
			<div class="main-content">
				
				<p class="common-href"><a href="/index">主页 </a> /  发布话题</p>
				<div class="post-form">
					<div class="row">
						<form action="/post" id="post_form" method="POST" class="form-horizontal">
							<div class="form-group">
							<label for="post_type" class="col-sm-2 control-label">选择板块：</label>
							<div class="col-sm-4">
								<select id="post_type" class="form-control" name="post[type]">
									<option value="0">请选择</option>
									<% types.forEach(function(type,key){
										if(type.type != 'good') {
									%> 
									<option value=<%=type._id %>><%=type.description %></option>
									<%} }) %>
								</select>
							</div>
							</div>
							<div class="form-group">
								<label for="post_title" class="col-sm-2 control-label">标题：</label>
								<div class="col-sm-8">
									<input type="text" id="post_title" name="post[title]" class="form-control" placeholder="标题字数在10字与30字之间">
								</div>
							</div>

							<div class="form-group">
								<label for="post_content" class="col-sm-2 control-label">正文：</label>
								<div class="col-sm-8">
								<textarea id="post_content" name="post[content]" class="form-control" rows="10"></textarea>
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-offset-2 col-sm-1">
									<button type="button" id="post_btn" class="post-btn btn btn-default btn-primary">提交</button>
								</div>
								<div class="col-sm-4">
								<p id="err_msg" class="err-msg"></p>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
				
			<div class="slide-content">
				
			<div class="about">
			<h3>关于</h3>
			<p>CNode: Node.js专业中文社区</p>
			<p>在这里你可以：</p>
			<ul>
				<li>向别人提出你遇到的问题</li>
				<li>帮助遇到问题的人</li>
				<li>分享自己的知识</li>
				<li>和他人一起进步</li>
			</ul>
			</div>


			</div>
		</div>
	</div>
	<%- include footer -%>
	<script src="js/jquery-1.11.1.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/post.js"></script>
</body>

</html>